﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Site.ViewModels.ArticleIndexViewModel>" %>
<%@ Import Namespace="SDT.Lib.Paging" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Model.Category!=null?Html.Encode(Model.Category.Name) :string.Empty  %> &nbsp;Thông tin cập nhật, đầy đủ nhất về thị trường nhà đất, bất động sản tại Việt Nam.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="clear"></div>
<div class="breadcrumbs">
    <a href="/home">Trang chủ</a><span></span><%=Model.Category!=null?Html.Encode(Model.Category.Name) :string.Empty  %>
</div>
<div class="line"></div>
 <% Html.RenderAction("GetHot", "Article", new { number = 5, skip = 0, catid = Model.Category != null ? Model.Category.ID : SDT.Model.ConfigManager.GetArticle(), title = "Tin mới", aorder = "ID", aorderDir = "desc" , viewName = "GetHot", controllerName = "article", actionList = "list", actionDetail = "details" }); %>
  <div class="clear"></div>
 <% Html.RenderPartial("~/Views/Shared/Common/Receive.ascx"); %>
 <div class="clear"></div>
 <% Html.RenderAction("LastedLeftTop", "Banner", new { posid = 2, menuid = 0, number = 0, width = 691, height = 91, order = "Priority", orderDir = "asc" }); %>
 <div class="clear"></div>
 <%foreach (var item in Model.Categories)
   { %>
  <% Html.RenderAction("GetByCat", "Article", new { number = 7, skip = 0, catid = item.ID, title = item.Name, order = "ID", orderDir = "desc" }); %>
 <%} %>
  <div>
    <% Html.RenderAction("LastedLeftBottom", "Banner", new { posid = 4, menuid = 0, number = 0, width = 691, height = 91, order = "ID", orderDir = "desc" }); %>
  </div>
  <div class="clear"></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="server">
  <% Html.RenderAction("LastedRightTop", "Banner", new { posid = 5, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
  <% Html.RenderAction("Lasted", "Video", new { catid = 0, number = 3, title = string.Empty }); %>
  <div class="clear"></div>
   <% Html.RenderAction("Lasted", "Event", new { number = 3, catid = Model.Category != null ? Model.Category.ID : 0 }); %>
   <div class="clear"></div>
   <% Html.RenderPartial("~/Views/Shared/Common/Gold.ascx"); %>
   <div class="clear"></div>
   <% Html.RenderAction("Lasted", "Useful", new { number = 8 }); %>
   <div class="mar_t">
        <% Html.RenderAction("LastedRightCenter", "Banner", new { posid = 6, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
   </div>
   <div class="mar_t">
        <% Html.RenderAction("LastedRightBottom", "Banner", new { posid = 7, menuid = 0, number = 0, width = 280, height = 250, order = "Priority", orderDir = "asc" }); %>
   </div>
</asp:Content>